package com.nidu.demo.user.dto;

import com.nidu.demo.base.BaseCmd;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserRoleAssignCmd extends BaseCmd {
    
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    
    @NotEmpty(message = "角色ID列表不能为空")
    private Set<Long> roleIds;
} 